首页> 外文OA文献 >Efficient implementation of run-time generic types for Java
【2h】

Efficient implementation of run-time generic types for Java

机译:Java的运行时通用类型的有效实现

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

One of the most significant limitations of the Java Programming Language is its lack of support for generic types. This thesis describes an efficient compiler and run-time type system for NextGen, a compatible extension of Java that supports generic types, including type dependent operations. The NextGen compiler is implemented as an extension to the existing compiler for GJ, a limited generic extension of Java that does not support run-time generic types. Our implementation is homogeneous, with one major exception: Instantiations of generic classes are constructed on demand. This exception is necessary to support polymorphic recursion. The NextGen compiler generates templates for such instantiation classes and relies on a customized class loader to construct instantiations at run-time. A suite of benchmarks on the Java, GJ, and NextGen compilers shows that the additional code required to support run-time generic types has little or no overhead compared to ordinary Java and GJ.
机译:Java编程语言最重要的限制之一是它缺乏对泛型类型的支持。本文介绍了一种用于NextGen的高效编译器和运行时类型系统,该系统是Java的兼容扩展,支持通用类型,包括类型相关的操作。 NextGen编译器被实现为GJ现有编译器的扩展,GJ是Java的有限通用扩展,不支持运行时通用类型。我们的实现是同类的,但有一个主要例外:通用类的实例是按需构造的。该异常对于支持多态递归是必需的。 NextGen编译器为此类实例化类生成模板,并依赖于自定义的类加载器在运行时构造实例化。 Java,GJ和NextGen编译器上的一组基准测试表明,与常规Java和GJ相比,支持运行时泛型类型所需的附加代码几乎没有开销。

著录项

  • 作者

    Allen, Eric Ethan;

  • 作者单位
  • 年度 2002
  • 总页数
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类

相似文献

  • 外文文献
  • 中文文献
  • 专利
代理获取

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号